﻿// 注释

using GeneralCommon.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.EcsWeb.Service.Grpc;
/// <summary>
/// 通道服务
/// </summary>
public interface IGrpcChannelService
{
    /// <summary>
    /// 创建连接
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <param name="url"></param>
    /// <returns></returns>
    Task<T> CreateGrpcService<T>(string url = "") where T : class, IGrpcCodeService;
    /// <summary>
    /// 关闭
    /// </summary>
    /// <returns></returns>
    Task Close();

    public bool IsConnect { get; set; }


}